<%@ page import="com.libraries.Page" %>
<%

String cmd = request.getParameter("cmd");
if(cmd == null) {
cmd = "runDefaultView";
}
cmd.toLowerCase();

String pageLocation = "/pages/admin";

// I should inject to page necessary jsp obj (request, response etc)
Page objPage = new Page();
objPage.setRequestObj(request);
objPage.setResponseObj(response);

if(cmd.equals("managementlist")) {
	objPage.setJS("/jqueryUI.js");
	objPage.setJS("/SWG.js");
	objPage.drawHeader("Management List");	
	objPage.drawPageContent(pageLocation + "/views/managementList.jsp");
} else {
	// redirect to login page or 500
	// temporary solution
	response.sendRedirect("/projekt1/index.jsp?page=admin&cmd=managementlist");
}

%>
